//
//  STPlayViewLoaderController.m
//  STNewTools
//
//  Created by stoneobs on 2017/6/7.
//  Copyright © 2017年 stoneobs. All rights reserved.
//

#import "STPlayViewLoaderController.h"
#import "STVideoPlayView.h"
#import "UIView+STDirection.h"
#import "STAVResourseNetTask.h"
#define SCREEN_HEIGHT  [UIScreen mainScreen].bounds.size.height
#define SCREEN_FRAME  [UIScreen mainScreen].bounds
#define SCREEN_WIDTH  [UIScreen mainScreen].bounds.size.width
@interface STPlayViewLoaderController ()

@end

@implementation STPlayViewLoaderController

- (void)viewDidLoad {
    [super viewDidLoad];
    STVideoPlayView * playView = [[STVideoPlayView alloc] initWithFrame:CGRectMake(0, 200, SCREEN_WIDTH, 200) andVideoUrl:@"https://video-cdn.suiyueyule.com/20170607171051-lhd34S9SWoy9BHUeA2cpi1vLGXzF.ts.mp4?auth_key=1496896926-0-0-331a4c9c4c11143b22927dda7072b9c8"];
    [self.view addSubview:playView];
//    NSLog(@"沙盒 -- %@",NSHomeDirectory());
//        STAVResourseNetTask * test = [STAVResourseNetTask new];
//        [test beginNetRequestWithUrl:[NSURL URLWithString:@"https://video-cdn.suiyueyule.com/20170606214734-luKQhXNkqrafwst5Y73zuvbXRv65.ts.mp4?auth_key=1496818119-0-0-7706c0dcb5d9b0924fdb38798014de7e"] andOffset:0];
    
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
